<?php

namespace addons\cms\controller\wxapp;

use addons\cms\model\Archives;
use addons\cms\model\Block;
use addons\cms\model\Channel;
use think\Config;

/**
 * 首页
 */
class Index extends Base
{
    protected $noNeedLogin = '*';

    /**
     * 首页
     */
    public function index()
    {
        /*启动页配置*/
        $site  = Config::get("site");
        $clientStartSetting = [
            'clientStartImage' => cdnurl($site['client_start_image'], true),
            'clientStartDuration' => (int)$site['client_start_duration']*1000,
            'clientIsStart' => $site['client_is_start']=='0'?false:true
        ];
        $data = [
            'clientStartSetting' => $clientStartSetting
        ];

        $this->success('', $data);
    }
}
